<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
</head>
<body>
<script>
    {if isset($token) && $store_id > 0}
    localStorage.setItem('cashier_token', '{$token}');
    localStorage.setItem('site_id', '{:request()->siteid()}');
    localStorage.setItem('store_id', '{$store_id}');
    {else/}
    localStorage.removeItem('cashier_token');
    localStorage.removeItem('site_id');
    localStorage.removeItem('store_id');
    {/if}
    location.href = '{$store_id ? $url : $url."/pages/login/login"}';
</script>
</body>
</html>

